//
//  BarChartVC.h
//  Wallets Manager
//
//  Created by Nguyen Chi Cong on 10/21/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BarChartVC : UIViewController<CPTBarPlotDataSource, CPTBarPlotDelegate>

@property (nonatomic, strong) IBOutlet CPTGraphHostingView *hostView;
@property (nonatomic, strong) CPTBarPlot *aaplPlot;
@property (nonatomic, strong) CPTBarPlot *googPlot;
//@property (nonatomic, strong) CPTBarPlot *msftPlot;
@property (nonatomic, strong) CPTPlotSpaceAnnotation *priceAnnotation;
@property (weak, nonatomic) IBOutlet UIImageView *imvExpense;
@property (weak, nonatomic) IBOutlet UIImageView *imvIncome;
@property (weak, nonatomic) IBOutlet UIImageView *imvLegend;
@property (strong, nonatomic) IBOutlet UIView *viewChange;
@property (weak, nonatomic) IBOutlet UITextField *lbYear;
@property (weak, nonatomic) IBOutlet UIView *viewDetail;

-(void)initPlot;
-(void)configureGraph;
-(void)configurePlots;
-(void)configureAxes;
-(void)hideAnnotation:(CPTGraph *)graph;

-(IBAction)backPreviousView:(id)sender;
-(CGFloat)maxInArray: (NSArray *)array;

@end
